package cn.kwq.project_manger.service;

import cn.kwq.project_manger.pojo.Msg;
import cn.kwq.project_manger.pojo.dto.ConvDto;
import cn.kwq.project_manger.pojo.dto.ResMsgDto;
import cn.kwq.project_manger.pojo.dto.SendMsg;

import java.util.List;

public interface MsgService {
    Msg Send(SendMsg sendMsg);

    List<ResMsgDto> getMsg(Long userId);

    Msg Read(Long msgId);

    Long CountUnRead(Long userId);

    @Deprecated
    ConvDto SendConv(Long fromId,Long toId,String msg);
    @Deprecated
    ConvDto GetOneConMsg(Long fromId, Long toId);
    @Deprecated
    ConvDto GetAllConvMsg(Long userId);



}
